package com.cashmama.market.api.domain.integration;

import com.cashmama.market.api.domain.vo.aadhaar.AadhaarCardSaveDTO;
import com.cashmama.market.api.domain.vo.aadhaar.AdvanceLivenessDetection;
import com.cashmama.market.api.domain.vo.aadhaar.AdvanceLivenessDetectionLicence;
import com.cashmama.market.api.domain.vo.aadhaar.OcrResponseVO;
import com.cashmama.market.api.domain.vo.user.UserBriefDTO;
import com.fqgj.common.api.Response;
import com.fqgj.xjd.user.client.enums.UserOcrTypeEnum;

/**
 * Created with IntelliJ IDEA.
 * User: yujianfu (mr.vencnet@gmail.com)
 * Date: 2019-12-24
 * Time: 15:31
 */
public interface AdvanceAiIntegrationService {
    void aadhaarCheck(String userCode, String aadhaarNo, UserBriefDTO userBriefDTO);

    void checkAadhaar(AadhaarCardSaveDTO aadhaarCardSaveDTO);

    String identityCheck(String aadhaarNo, String name, String phoneNumber, String email);

    String identityCheckResult(String userCode, String transactionId, String OPT);

    /**
     * ocr识别
     *
     * @param imgUrl
     * @return 返回结果json
     */
    Response<String> ocr(String imgUrl);

    /**
     * 新ocr识别
     *
     * @param frontImgUrl
     * @param backImgUrl
     * @return
     */
    Response<OcrResponseVO> ocrAadhaar(String frontImgUrl, String backImgUrl);
    Response<OcrResponseVO> ocrPan(String frontImgUrl);

    /**
     * 反欺诈
     *
     * @param data 图片
     * @return 分数
     */
    Response<Double> antiHack(byte[] data);


    AdvanceLivenessDetectionLicence advanceLivenessDetectionLicense(String userCode,String packageName);

    AdvanceLivenessDetection advanceLivenessDetection(String userCode, String livenessId);
}
